<template>
  <el-card class="head-tool">
    <el-row type="flex" justify="space-between">
      <div v-if="$slots.before" class="before-box">
        <i class="el-icon-info"></i>
       <slot name="before"/>
      </div>
      <div class="after-box">
        <slot name="after"/>
      </div>
    </el-row>
  </el-card>
</template>

<script>
export default {
    mounted() {
        // console.log(this.$slot);
    },
}
</script>

<style lang="scss" scoped>
.head-tool{
    margin: 30px 0;
    .before-box{
        font-size: 14px;
        background-color: #e6f7ff;
        height: 34px;
        line-height: 34px;
        border: 1px solid #91d5ff;
        padding: 0 10px;
        border-radius: 3px;
        i{
            color:#409eff;
            margin-right: 5px;
        }
    }
    .after-box{
        flex: 1; 
        display: flex; 
        justify-content: flex-end;

    }
}




</style>
